const mongoose = require('../db');
const OrCate = new mongoose.Schema({
    name:String,
})
const orderSchema = new mongoose.Schema({
    name:String,
    rtime:{
        type:Date,
        default:Date.now
    },
    ttime:{
        type:Date,
        default:Date.now
    },
    customer:String,
    cprint:Number,
    ShoopG:String,
    sprint:Number,
    state:String,
    address:String,
    price:Number,
    cate:String,
    num:{
        type:Number,
        default:0
    },
    career:String
})
const orderModel = mongoose.model('order',orderSchema,'order');
const orcateModel = mongoose.model('OrCate',OrCate,'OrCate');




module.exports = {
    orderModel,orcateModel
}